package cn.bonoon.kernel.web.annotations.components;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Target(FIELD)
@Retention(RUNTIME)
public @interface AsNumberBox {
	double min() default Double.NaN;
	double max() default Double.NaN;
	double precision() default 0;
	/**
	 * 前缀字符。(比如：金额的$或者￥)
	 * @return
	 */
	String prefix() default "";
	/**
	 * 后缀字符。(比如：后置的欧元符号€)
	 * @return
	 */
	String suffix() default "";
}
